# git annex unlock photo.jpg
# gimp photo.jpg
- # git annex add photo.jpg
- # git annex lock photo.jpg
- # git commit -m "redeye removal"
+ # git commit photo.jpg -m "redeye removal"
+ # gimp photo.jpg
+ # git commit photo.jpg -m "fix oversaturation"
+ # git annex lock photo.jpg
# OPTIONS
--- /dev/null
+[[!comment format=mdwn
+ username="joey"
+ subject="""Re: We don’t need a 'git annex lock' after a 'git annex add', right?"""
+ date="2025-09-16T17:28:49Z"
+ content="""
+Well spotted. `git-annex add` defaults to adding files locked, even when
+adding what was an unlocked file before.
+
+I've improved the example.
+"""]]